package behavior.command;

/**
 * 电视机接收到命令后处理事情，是命令的接受并执行者，命令的接受者也不知道命令的发出者是谁
 * 
 * @author thinkpad
 *
 */
public class Television {
	public int currentChannel = 0;

	public void turnOn() {
		System.out.println("The televisino is on.");
	}

	public void turnOff() {
		System.out.println("The television is off.");
	}

	public void changeChannel(int channel) {
		this.currentChannel = channel;
		System.out.println("Now TV channel is " + channel);
	}
}
